package com.yowasa.xiuxian.engine.hone.special;

import com.yowasa.xiuxian.annoations.SE;
import com.yowasa.xiuxian.engine.HoneEngine;
import com.yowasa.xiuxian.engine.hone.MentalInterface;
import com.yowasa.xiuxian.engine.hone.SpecialInterface;
import com.yowasa.xiuxian.entity.bo.user.UserBO;
import com.yowasa.xiuxian.entity.enums.ElementEnum;
import com.yowasa.xiuxian.entity.enums.StageEnum;
import com.yowasa.xiuxian.exception.HandlerException;
import org.springframework.util.StringUtils;

@SE(name = "涅槃之法")
public class NiePanZhiFa implements SpecialInterface {
    @Override
    public ElementEnum getElement() {
        return ElementEnum.FIRE;
    }

    @Override
    public void limit(UserBO user) {
        if (user.getStage() > StageEnum.JIE_DAN.getLevel()) {
            throw new HandlerException("学习/使用涅槃之法必须要了彻之白以下");
        }
    }

    @Override
    public String limitDesc() {
        return "境界不高于了彻之白";
    }

    @Override
    public String desc() {
        return "修习之后突破时额外提高3点自身不满70的基础属性值";
    }

}
